import {
  request as fetch
} from '../utils/util'
const login = {
  getToken(params) {
    return fetch('/common/wechat/login', params, true)
  },
  getUseInfo(params) {
    return fetch('/common/wechat/decode', params)
  },
  getSendMsg(params) {
    return fetch('/common/wechat/sendMsg', params)
  },
  weChatpay (params) {
    return fetch('/common/wechat/pay', params)
  },
  regist (params) {
    return fetch('/common/wechat/regist', params)
  }
}
export default login